package dome3;

class ElectricCar extends Car {
    int batteryCapacity;

    public ElectricCar(String brand, int wheels, int batteryCapacity) {
        super(brand, wheels);
        this.batteryCapacity = batteryCapacity;
    }

    public void charge() {
        System.out.println(brand + "正在充电，电池容量：" + batteryCapacity + "kWh");
    }
}